from pydantic import BaseModel, HttpUrl
from typing import List

class FaceDataItem(BaseModel):
    target_face_url: str
    user_face_urls: List[str]

class FaceDataModel(BaseModel):
    face_data: List[FaceDataItem]
    oss_name: str
    shuiyin: bool
    target_image: str
    class Config:
        json_schema_extra = {
            "example": {
  "face_data": [
    {
      "target_face_url": "http://ty-huanlian.oss-cn-shanghai.aliyuncs.com/swap_face%2F202311%2Fbest_face_0_1700656335_95ab04878b90387862e94df7274cbd83.png",
      "user_face_urls": [
        "http://usfile.chaotuapp.com/uploads/android/user/1700029261092.jpg"
      ]
    },
    {
      "target_face_url": "http://ty-huanlian.oss-cn-shanghai.aliyuncs.com/swap_face%2F202311%2Fbest_face_1_1700656335_95ab04878b90387862e94df7274cbd83.png",
      "user_face_urls": [
        "http://usfile.chaotuapp.com/uploads/android/user/1700026696556.jpg"
      ]
    }
  ],
  "oss_name": "ali",
  "shuiyin": True,
  "target_image": "https://ty-huanlian.oss-cn-shanghai.aliyuncs.com/test/WX20230831-151640%402x.png"
}
        }
